Component({
  data: {
    sheetHidden: true,
    sheetDotsIdx: 0,
    sheetItemData1: [
      { id: 1, label: "成功" },
      { id: 2, label: "失败" },
      { id: 3, label: "警告" },
      { id: 4, label: "信息" },
      { id: 5, label: "微信" },
      { id: 6, label: "QQ" },
      { id: 7, label: "企业微信" },
      { id: 8, label: "朋友圈" }
    ],
    sheetItemData2: [
      { id: 11, label: "下载" },
      { id: 12, label: "收藏" },
      { id: 13, label: "复制" },
      { id: 14, label: "粘贴" },
      { id: 15, label: "刷新" },
      { id: 16, label: "关闭" },
      { id: 17, label: "重启" },
      { id: 18, label: "开启" }
    ]
  },
  methods: {
    /**
     * 显示与隐藏动作面板
     */
    sheetHiddenHandle() {
      this.setData({
        sheetHidden: !this.data.sheetHidden
      });
    },

    /**
     * 隐藏动作面板
     */
    cancelSheetHandle() {
      this.sheetHiddenHandle();
    },

    /**
     * 动作面板内容翻页
     * @param {Object} e 
     */
    swiperChangeHandle(e) {
      let currentIdx = e.detail.current;
      this.setData({
        sheetDotsIdx: currentIdx
      });
    }
  }
});